package com.shxc.smarttrade.tigerwit.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.shxc.smarttrade.R;
import com.shxc.smarttrade.base.BaseActivity;
import com.shxc.smarttrade.kvb.activity.LawActivity;

import org.xchris.view.annotation.ContentView;
import org.xchris.view.annotation.Event;
import org.xchris.view.annotation.ViewInject;

/**
 * 前往TigerWit 提示
 */
@ContentView(R.layout.activity_tigerwit_notice)
public class TigerWitNoticeActivity extends BaseActivity {

    @ViewInject(R.id.title_textview)
    TextView title_textview;
    @ViewInject(R.id.left_imageview)
    ImageView left_imageview;

    String url = "http://testww.whjyds.com/wawaji/introduction.html";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        title_textview.setText("提示");
        left_imageview.setVisibility(View.VISIBLE);
    }

    @Event({R.id.left_imageview, R.id.law_textview, R.id.recharge_textview, R.id.withdraw_textview})
    private void onClickk(View view) {

        switch (view.getId()) {
            case R.id.left_imageview:
                finish();
                break;
            case R.id.law_textview:
                //法律相关
//                JumpTo(LawActivity.class);
                break;
            case R.id.recharge_textview:
                //前往经纪商入金
                JumpTo(TigerWitRechargeActivity.class);
                break;
            case R.id.withdraw_textview:
                //前往经纪商出金
                JumpTo(TigerWitWithdrawActivity.class);
                break;
        }
    }
}
